using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace LibTester
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.PropertyGrid propertyGrid1;
		private System.Windows.Forms.Panel panel1;
		private Shape shape1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
			this.shape1 = new System.Windows.Forms.Shape();
			this.panel1 = new System.Windows.Forms.Panel();
			((System.ComponentModel.ISupportInitialize)(this.shape1)).BeginInit();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// propertyGrid1
			// 
			this.propertyGrid1.CommandsVisibleIfAvailable = true;
			this.propertyGrid1.LargeButtons = false;
			this.propertyGrid1.LineColor = System.Drawing.SystemColors.ScrollBar;
			this.propertyGrid1.Location = new System.Drawing.Point(8, 8);
			this.propertyGrid1.Name = "propertyGrid1";
			this.propertyGrid1.SelectedObject = this.shape1;
			this.propertyGrid1.Size = new System.Drawing.Size(280, 376);
			this.propertyGrid1.TabIndex = 4;
			this.propertyGrid1.Text = "propertyGrid1";
			this.propertyGrid1.ViewBackColor = System.Drawing.SystemColors.Window;
			this.propertyGrid1.ViewForeColor = System.Drawing.SystemColors.WindowText;
			this.propertyGrid1.VisibleChanged += new System.EventHandler(this.propertyGrid1_VisibleChanged);
			// 
			// shape1
			// 
			this.shape1.Fill.Color2 = System.Drawing.Color.SeaShell;
			this.shape1.Fill.GradientCenter = 0.53F;
			this.shape1.Fill.Pattern = System.Drawing.Drawing2D.HatchStyle.BackwardDiagonal;
			this.shape1.Fill.Style = System.Drawing.Drawing2D.FillStyle.LinearGradient;
			this.shape1.Name = "shape1";
			this.shape1.Size = new System.Drawing.Size(300, 300);
			this.shape1.TabIndex = 0;
			this.shape1.Text = "Text";
			// 
			// panel1
			// 
			this.panel1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
																				 this.shape1});
			this.panel1.Location = new System.Drawing.Point(296, 8);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(300, 376);
			this.panel1.TabIndex = 3;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(608, 397);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.propertyGrid1,
																		  this.panel1});
			this.Name = "Form1";
			this.Text = "Form1";
			((System.ComponentModel.ISupportInitialize)(this.shape1)).EndInit();
			this.panel1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		static Form1() 
		{
			ShapePathProvider.GetShapePath("test", "F0 M 0.1, 1 L 0.2, 0.4 3, 12 A 1, 2 90.0 0 1 0.8, 1.2 L 2, 4.2 3, 0.12 Z");
		}

		private void propertyGrid1_VisibleChanged(object sender, System.EventArgs e)
		{
		
		}
	}
}
